package day04.ZiXiLianXi.DuoTai;

public class Animal {
    public void zxc(){
        System.out.println("动物吃饭");
    }
}
class zxc extends Animal{
    @Override
    public void zxc(){
        System.out.println("猫吃鱼");
    }
}
class cxz{
    public static void main(String[] args) {
        zxc z = new zxc();
        Animal a = new zxc();
        a.zxc();
    }
}